<p class="Paragraph"><help:paragraphinfo state="U" number="2"/>Enables an error-handling routine after an error occurs, or resumes program execution.</p>
<p class="Paragraph"><help:paragraphinfo state="U" number="7" xmlns:help="http://openoffice.org/2000/help"/><span class="T1">GoTo Labelname:</span> If an error occurs, enables the error-handling routine that starts at the line "Labelname".</p>
<p class="Paragraph"><help:paragraphinfo state="U" number="8" xmlns:help="http://openoffice.org/2000/help"/><span class="T1">Resume Next:</span> If an error occurs, program execution continues with the statement that follows the statement in which the error occurred.</p>
<p class="Paragraph"><help:paragraphinfo state="U" number="9" xmlns:help="http://openoffice.org/2000/help"/><span class="T1">GoTo 0: </span>Disables the error handler in the current procedure.</p>
<p class="Paragraph"><help:paragraphinfo state="U" number="10" xmlns:help="http://openoffice.org/2000/help"/>The On Error GoTo statement is used to react to errors that occur in a macro. The statement must be inserted at the start of a procedure (in a local error-handling routine) or at the start of a module.</p>
<p class="PropText"><help:paragraphinfo state="U" number="51" xmlns:help="http://openoffice.org/2000/help"/>Open aFile For Output As #iNumber</p>
<p class="PropText"><help:paragraphinfo state="U" number="52" xmlns:help="http://openoffice.org/2000/help"/>Print #iNumber, "This is a line of text"</p>
<p class="PropText"><help:paragraphinfo state="U" number="67" xmlns:help="http://openoffice.org/2000/help"/>MsgBox "All files will be closed",0,"Error"</p>